package com.runshu.newsmartark.mvp.model;


import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.FaceManagerBean;
import com.runshu.newsmartark.mvp.contract.FaceManagerContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/8/10
 * @decs：
 */

public class FaceManagerModel extends BaseModel implements FaceManagerContract.Model {
    @Override
    public void getFaceList(String mac, BaseCallBack baseCallBack) {
        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        builder.putParams("macAddress",mac);
        super.initDataFromServer(ConstantUrl.GET_FACE_LIST,builder.build(), FaceManagerBean.class, ResponseBean.RES_DATATYPE_BEANLIST,baseCallBack);
    }
}